package me.sealer.ssm.mapper;

import me.sealer.ssm.model.Role;
import me.sealer.ssm.model.RoleExample;

import java.util.List;

/**
 * @author sealer
 * @date 2018/05/11
 */
public interface RoleMapper {
    List<Role> selectByExample(RoleExample example);

    Role selectByPrimaryKey(Integer id);

    List<Role> getRolesByUserId(Integer id);

    Role getRoleByName(String roleName);

    int countByExample(RoleExample roleExample);

    void insertOne(Role role);

    void deleteByPrimary(Integer id);
}